import request from '@/utils/request'

// 查询大屏管理列表
export function listDevice(data) {
  return request({
    url: '/school/device/list',
    method: 'post',
    data: data
  })
}

// 查询大屏管理详细
export function getDevice(id) {
  return request({
    url: '/school/device/' + id,
    method: 'get'
  })
}

// 新增大屏管理
export function addDevice(data) {
  return request({
    url: '/school/device/add',
    method: 'post',
    data: data
  })
}

// 修改大屏管理
export function updateDevice(data) {
  return request({
    url: '/school/device/edit',
    method: 'post',
    data: data
  })
}

// 删除大屏管理
export function delDevice(id) {
  return request({
    url: '/school/device/remove/' + id,
    method: 'post'
  })
}
